<?php
require_once('../phplib/include.inc.php');

class AddProduct extends PageBase{
	public function Ini(){
		Util::ValidateRight(array(1,2),'or');
		$this->GetTypes();
		global $WeldSetting;
		$this->assign('hscls',$WeldSetting['hscl']);
		$this->assign('czmss',$WeldSetting['czms']);
		$this->assign('hszjs',$WeldSetting['hszj']);
		$this->assign('bhqts',$WeldSetting['bhqt']);
	}
	public function GetTypes(){
		$db = getDb();
		$db->connect();
		$types = $db->fetch("SELECT * FROM type_t");
		$this->assign('types',$types);
	}
}
$addproduct = new AddProduct("file:".dirname(__FILE__)."/../home/addproduct.tpl.html");
$addproduct->display();
?>